﻿using System;
using System.Collections.Generic;
using System.Text;

namespace gt.dotnetcore.webapi.extensions.ApiLogging
{
    public class ApiLog
    {
        /// <summary>
        /// 请求唯一标识
        /// </summary>
        public string RequestId { get; set; }
        /// <summary>
        /// 请求url
        /// </summary>
        public string RequestUrl { get; set; }
        /// <summary>
        /// 请求url参数
        /// </summary>
        public string QueryString { get; set; }
        /// <summary>
        /// 请求http method
        /// </summary>
        public string HttpMethod { get; set; }
        /// <summary>
        /// 客户端Ip
        /// </summary>
        public string ClientIp { get; set; }
        /// <summary>
        /// 服务的ip
        /// </summary>
        public string ServerIp { get; set; }
        /// <summary>
        /// 请求http code
        /// </summary>
        public int StatusCode { get; set; }
        /// <summary>
        /// 请求客户端Id
        /// </summary>
        public string ClientId { get; set; }
        /// <summary>
        /// 请求Request
        /// </summary>
        public string Request { get; set; }
        /// <summary>
        /// 请求Response
        /// </summary>
        public string Response { get; set; }
        /// <summary>
        /// 请求生成时间
        /// </summary>
        public string CreateTime { get; set; }
        /// <summary>
        /// 请求耗时
        /// </summary>
        public double Duration { get; set; }
    }
}
